OtWorkerQueue: Don't exit until we've fulfilled initial requests
authorColin Walters <walters@verbum.org>
Fri, 21 Dec 2012 14:35:27 +0000 (09:35 -0500)
committerColin Walters <walters@verbum.org>
Fri, 21 Dec 2012 14:36:38 +0000 (09:36 -0500)
commit3d41d1d2db13cf9f2131c51307f27368d9cd669d
treeedbb99076de07a5d75cbdac7ca7f31811b4f0a25
parentfddc11ca74197b9cc3a3b5912396349277707ef8
OtWorkerQueue: Don't exit until we've fulfilled initial requests

This counts as an implicit "hold" on the first items, which we must
complete.  Otherwise there are race conditions where the queue may
signal idle when in fact the main process is still working.
src/libotutil/ot-worker-queue.c